<template>
  <van-empty description="暂无商品">
  <van-button round type="danger" @click="goShop" class="bottom-button">去选购</van-button>
</van-empty>
</template>

<script>
import { useRouter } from "vue-router";
export default {
  setup(){
    const router = useRouter()
    const goShop = () => {
      router.push('./home');
    };
    return{
        goShop
    }
  }
}
</script>

<style lang="less" scoped >
 .bottom-button {
    width: 160px;
    height: 40px;
  }

</style>